#include "CRectangle.h"
int main() {
	CRectangle recta;
	recta.setValues(3, 4);
	CRectangle *rectb;
	rectb = &recta;
	rectb->setValues(3, 9);
	cout << "area : " << recta.area() << endl;
	cout << "area : " << rectb->area() << endl;
	CRectangle *rectc = new CRectangle();
	rectc->setValues(5, 6);
	rectb = rectc;
	rectc->setValues(7, 8);
	cout << "area : " << rectb->area() << endl;
	cout << "area : " << rectc->area() << endl;
	delete rectb;
	system("pause");
	return 0;

}